package nagel_schreckenberg;

import java.util.ArrayList;

import nagel_schreckenberg.Lane.Direction;

public class OneIntersection implements Intersection{
	
	private Lane in;
	private Lane out;

	public OneIntersection(){
		
	}

	public void addLanes(Lane in, Lane out) {
		this.in = in;
		in.connectTarget(this);
		this.out = out;
		in.connectSource(this);
	}
	
	@Override
	public Lane getIn(Direction d){
		return in;
	}
	
	@Override
	public void spawn() {}

	@Override
	public void clearSink() {}

	@Override
	public Lane getOut(Direction d) {
		return out;
	}

	@Override
	public void controlLights() {}

	@Override
	public boolean hasSpawned() {return false;}

	@Override
	public void gershenson() {}

	@Override
	public int countSink() {return 0;}

	@Override
	public double travelTime() {return 0;}

	@Override
	public void learning() {}

	@Override
	public void greedy() {}

}
